import request from '@/utils/request'

export function getList(params) {
    return request({
      url: '/vue-admin-template/role/list',
      method: 'post',
      params
     
    })
  }

  export function addRole(data) {
    return request({
      url: '/vue-admin-template/role',
      method: 'post',
      data
     
    })
  }
  

  export function updateRole(data) {
    return request({
      url: '/vue-admin-template/role',
      method: 'put',
      data
     
    })
  }
  

  export function deleteRole(data) {
    return request({
      url: '/vue-admin-template/role',
      method: 'delete',
      data
     
    })
  }
  